﻿using System;

namespace Cms.Data.ORM
{
    public class AuditLogRecord
    {
        public AuditLogRecord()
        {
        }

        public AuditLogRecord(LogTypes action, string entityType, int entityID, string message, int administratorID, int userID)
        {
            Action = action;
            Created = DateTime.Now;
            EntityType = entityType;
            EntityID = entityID;
            AdministratorID = administratorID;
            UserID = userID;
            Message = message;
        }

        public virtual long ID { get; set; }

        public virtual LogTypes Action { get; set; }

        public virtual string EntityType { get; set; }

        public virtual int EntityID { get; set; }

        public virtual string Message { get; set; }

        public virtual int AdministratorID { get; set; }

        public virtual int UserID { get; set; }

        public virtual DateTime Created { get; set; }
    }
}